<!-- File: app/views/m_user/add.ctp -->
<?php
/**** Message ****/
echo $this->Session->flash();

echo $this->Javascript->link('add-user.js', true);
echo $this->Javascript->link('functions.js', true);
?>

	<?php echo $this->Form->create('MUser'); ?>
	<table class="table_multi_fields table mt40 noborder">
  		<tr>
  			<td class="text-l w150 noborder-t vertical-align">User ID</td>
  			<td class="text-l noborder-t">
  				<?php echo $this->Form->input('MUser.user_id',array('type'=>'text','label'=>'','autocomplete'=>'off','id'=>'user_id','class'=>'form-control top noradius','placeholder'=>'Ex: suc001','autofocus'=>'autofocus'));?>
  			</td>
  		</tr>
		<tr>
			<td class="text-l w100 noborder-t vertical-align">Username</td>
			<td class="text-l noborder-t">
				<?php echo $this->Form->input('MUser.user_name',array('type'=>'text','label'=>'','autocomplete'=>'off','id'=>'user_name','class'=>'form-control top noradius','placeholder'=>'Ex: tommy, 後藤'));?>
			</td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t vertical-align">Username Kata</td>
			<td class="text-l noborder-t">
				<?php echo $this->Form->input('MUser.user_name_kata',array('type'=>'text','label'=>'','autocomplete'=>'off','id'=>'user_name_kata','class'=>'form-control top noradius','placeholder'=>'Ex: トミー'));?>
			</td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t vertical-align">Password</td>
			<td class="text-l noborder-t">
				<?php echo $this->Form->input('MUser.newPassword',array('type'=>'password','label'=>'','autocomplete'=>'off','id'=>'password','class'=>'password form-control top noradius'));?>
			</td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t vertical-align">Email address</td>
			<td class="text-l noborder-t">
				<?php echo $this->Form->input('MUser.email_address',array('type'=>'text','label'=>'','autocomplete'=>'off','id'=>'email_address','class'=>'form-control top noradius','placeholder'=>'Ex: name@domain.co.jp'));?>
			</td>
		</tr>
		<tr>
			<?php echo $this->Form->input('MUser.invalid_flg',array('type'=>'hidden','value'=>'0'));?>
			<?php echo $this->Form->input('MUser.create_time',array('type'=>'hidden','value'=>date('Y-m-d H:i:s')));?>
			<?php echo $this->Form->input('MUser.creator', array('type' => 'hidden','value'=>$Usersuser_name)); ?>
		<td class="text-l w30 noborder-t"></td></tr>
		
  	</table> 
	
	<div class="clearfix"></div>
	<div class="text-c mt30">
	<a href="#confirm-box" class="confirm-window btn-lg noradius btn-nocolor nodecor">Add</a>
	<?php //echo $this->Form->submit('Add',array('class'=>'btn-lg noradius btn-nocolor nodecor','name' => 'create'));?>
	</div>
	

	
<div id="confirm-box" name="confirm-box" class="confirm-form" style="display: none;">

<?php echo $this->Html->link($this->Html->image('close.png'),array('href' => ''),array('escape' => FALSE,'class'=>'img-close'));?>
<?php echo $this->Form->create('MUser',array('class'=>'confirm-content')); ?>
	<table class="table_multi_fields table m0a mt40 noborder w700">
  		<tr><td colspan="5" class="noborder-t confirm_title text-c">Please confirm your information before we save it !</td></tr>
  		<tr>
  			<td class="text-l w150 noborder-t">User ID</td>
  			<td class="text-l noborder-t">
  			<input type="text" name="MUser.user_id" id="user_id_temp" class="form-control top noradius" placeholder="NO DATA" autofocus="autofocus" autocomplete="off" disabled>
  			</td>
  			<td id="showMsgID" class="noborder-t"></td>
  		</tr>
		<tr>
			<td class="text-l w100 noborder-t">Username</td>
			<td class="text-l noborder-t">
			<input type="text" name="MUser.user_name" id="user_name_temp" class="form-control top noradius" placeholder="NO DATA" autofocus="autofocus" autocomplete="off" disabled>
			</td>
			<td id="showMsgUN" class="noborder-t"></td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t">Username Kata</td>
			<td class="text-l noborder-t">
			<input type="text" name="MUser.user_name_kata" id="user_name_kata_temp" class="form-control top noradius" placeholder="NO DATA" autofocus="autofocus" autocomplete="off" disabled>
			</td>
			<td id="showMsgUNK" class="noborder-t"></td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t">Password</td>
			<td class="text-l noborder-t">
			<input type="password" name="MUser.newPassword" id="password_temp" class="password form-control top noradius" autofocus="autofocus" autocomplete="off" disabled>
			</td>
			<td id="showMsgPass" class="noborder-t"></td>
		</tr>
		<tr>
			<td class="text-l w100 noborder-t">Email address</td>
			<td class="text-l noborder-t">
			<input type="text" name="MUser.email_address" id="email_address_temp" class="form-control top noradius" placeholder="NO DATA" autofocus="autofocus" autocomplete="off" disabled>
			</td>
			<td id="showMsgEM" class="noborder-t"></td>
		</tr>
		<tr><td class="text-l w30 noborder-t"></td></tr>
  		
  	</table> 
	
	<div class="clearfix"></div>
	<div class="text-c mt30">
	<?php echo $this->Form->submit('Confirm',array('div' => false,'class'=>'btn-lg noradius btn-nocolor nodecor','name' => 'create','id'=>'submit','disabled'=>'disabled'));?>
	<input type="button" class="close-btn btn-lg noradius btn-nocolor nodecor ml40" value="Cancel">
	</div>
</div>





